/**
 * Created by zhujiaming on 2017/5/11.
 */

export const loginActions = {
    ACTION_LOGIN: 'action_login',
    ACTION_LOGIN_SUCCESS: 'action_login',
    ACTION_LOGIN_FAIL: 'action_login',
    ACTION_RIGEST: 'action_regist',
};

const loginSuccess = (data) => {
    return {
        type: loginActions.ACTION_LOGIN_SUCCESS,
        data,
    }
}

const loginFail = (data) => {
    return {
        type: loginActions.ACTION_LOGIN_FAIL,
        data,
    }
}
